FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/Contributor4to3

Packagehl7.fhir.uv.xver
Resource TypeStructureMap
IdContributor4to3
FHIR VersionR5
Sourcehttp://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Contributor4to3.html
URLhttp://hl7.org/fhir/StructureMap/Contributor4to3
Version0.1.0
Statusactive
Date2024-02-22T03:16:50+00:00
NameContributor4to3
TitleContributor Transforms: R4 to R3
Realmuv
Authorityhl7
DescriptionContributorTransformsR4toR3

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/Contributor4to3'
/// name = 'Contributor4to3'
/// title = 'Contributor Transforms: R4 to R3'
/// status = 'active'

uses "http://hl7.org/fhir/4.0/Contributor" alias Contributor as source
uses "http://hl7.org/fhir/3.0/Contributor" alias ContributorR3 as target

imports "http://hl7.org/fhir/StructureMap/*4to3"

group Contributor(source src : ContactDetail, target tgt : ContributorR3) {
  src.extension as e where url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-Contributor.name' then {
    e.value -> tgt.name;
  };
  src -> tgt.contact as vt then ContactDetail(src, vt) "contact";
}


Source

{
  "resourceType": "StructureMap",
  "id": "Contributor4to3",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "draft",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/StructureMap/Contributor4to3",
  "version": "0.1.0",
  "name": "Contributor4to3",
  "title": "Contributor Transforms: R4 to R3",
  "status": "active",
  "date": "2024-02-22T03:16:50+00:00",
  "publisher": "HL7 International / FHIR Infrastructure",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "ContributorTransformsR4toR3",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/4.0/Contributor",
      "mode": "source",
      "alias": "Contributor"
    },
    {
      "url": "http://hl7.org/fhir/3.0/Contributor",
      "mode": "target",
      "alias": "ContributorR3"
    }
  ],
  "import": [
    "http://hl7.org/fhir/StructureMap/*4to3"
  ],
  "group": [
    {
      "name": "Contributor",
      "input": [
        {
          "name": "src",
          "type": "ContactDetail",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "ContributorR3",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "extension",
          "source": [
            {
              "context": "src",
              "element": "extension",
              "variable": "e",
              "condition": "url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-Contributor.name'"
            }
          ],
          "rule": [
            {
              "name": "value",
              "source": [
                {
                  "context": "e",
                  "element": "value",
                  "variable": "vvv"
                }
              ],
              "target": [
                {
                  "context": "tgt",
                  "element": "name",
                  "variable": "vvv",
                  "transform": "create"
                }
              ],
              "dependent": [
                {
                  "name": "DefaultMappingGroupAnonymousAlias",
                  "parameter": [
                    {
                      "valueId": "vvv"
                    },
                    {
                      "valueId": "vvv"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "contact",
          "source": [
            {
              "context": "src"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "contact",
              "variable": "vt"
            }
          ],
          "dependent": [
            {
              "name": "ContactDetail",
              "parameter": [
                {
                  "valueId": "src"
                },
                {
                  "valueId": "vt"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}